package cn.edu.fzu.homemaking.sso.mapper;

import java.util.List;

import cn.edu.fzu.homemaking.sso.domain.entity.Resource;
import cn.edu.fzu.homemaking.sso.domain.enums.StatusEnum;
import org.apache.ibatis.annotations.Param;

public interface ResourceMapper {

    List<Resource> list(@Param("userId") Long userId, @Param("name") String name, @Param("pid") Long pid,
                        @Param("status") StatusEnum status,
                        @Param("isNullPid") boolean isNullPid);


    void delRoleResourceByRoleId(@Param("roleId") Long roleId);


    void addRoleResource(@Param("roleId") Long roleId, @Param("resourceIds") List<Long> resourceIds);


    List<String> listResourceUrlByRoleId(@Param("roleId") Long roleId);


    List<Long> listResourceIdByRoleId(@Param("roleId") Long roleId);
}
